package com.itheima.dao;

import com.itheima.domain.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionDao {
    int save(Permission permission);

    int update(Permission permission);

    int delete(String id);

    Permission findById(String id);

    List<Permission> findAll();

    //通过角色ID查找对应权限
    List<Map> findAuthorDataByRoleId(String roleId);

    List<Permission> findPermissionByUserId(String userId);
}
